package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.StrategyCommentQueryObj;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyCommentService {

    PageInfo<?> query(QueryObject qo);

    void update(StrategyComment strategyComment);

    List<StrategyComment> selectByState(Integer state);

    PageInfo getHeadline(StrategyCommentQueryObj qo);

    StrategyComment getStrategyCommentDetailsById(Long strategyCommentId);

    /**
     * 通过用户的id 查询到他所有的评论,来回显到他的个人信息页面
     * @param qo
     * @return
     */
    PageInfo selectByUserId(StrategyCommentQueryObj qo);

    void save(Long[] tag, String myTags, StrategyComment strategyComment);

    void updateLikeNum(Long relationId);
    PageInfo getStrategyCommentByStrategyId(StrategyCommentQueryObj qo);
}
